Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add jq from official jq docker container #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chmuche
Copy link

@chmuche chmuche commented May 3, 2024

@chmuche
Copy link
Author

chmuche commented May 3, 2024

@miton18

Work on my CI/CD pipeline.
I don't know if you have tests or other things to run before

Alexis PASQUIER added 2 commits May 3, 2024 19:21
Add curl binary :

- missing in busybox:glibc
. Add cert to avoid `curl: (77) error setting certificate file: /etc/ssl/certs/ca-certificates.crt`
@chmuche
Copy link
Author

chmuche commented May 3, 2024

Hello @hsablonniere or @miton18 can you review this PR ?

Fix the issue #5

And most of all allow to use clever curl with your docker image

$ docker run  -e CLEVER_TOKEN=$CLEVER_TOKEN -e CLEVER_SECRET=$CLEVER_SECRET clevercloud/clever-tools:latest curl https://api.clever-cloud.com/v2/self
node:events:491
      throw er; // Unhandled 'error' event
      ^

Error: spawn curl ENOENT
    at ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
Emitted 'error' event on ChildProcess instance at:
    at ChildProcess._handle.onexit (node:internal/child_process:289:12)
    at onErrorNT (node:internal/child_process:476:16)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
  errno: -2,
  code: 'ENOENT',
  syscall: 'spawn curl',
  path: 'curl',
  spawnargs: [
    'https://api.clever-cloud.com/v2/self',
    '-H',
    'Authorization: OAuth oauth_consumer_key="T5nFjKeHH4AIlEveuGhB5S3xg8T19e", oauth_nonce="eCev8nONFpQlyf57JIVnOWqUcinkkISb", oauth_signature="jz4edDcBlLS4SFItqFEi1egdwSY6k7%2BKOwV4up28lk9G76d6RUA5a4rHCeGAridDk%2BAOZOqc1YoLw5TRhCM0YQ%3D%3D", oauth_signature_method="HMAC-SHA512", oauth_timestamp="1714757435", oauth_token="1ac21a4387d24baf8c082da73f7b17ba", oauth_version="1.0"'
  ]
}

Node.js v18.15.0

With my PR

$ docker run  -e CLEVER_TOKEN=$CLEVER_TOKEN -e CLEVER_SECRET=$CLEVER_SECRET clevertools:local curl https://api.clever-cloud.com/v2/self
<result json ok>

And add jq from my issue CleverCloud/clever-tools#736

@chmuche
Copy link
Author

chmuche commented May 30, 2024

Hello, did I do something wrong with my PR ?

miton18 added a commit to CleverCloud/clever-tools that referenced this pull request Jul 5, 2024
This is the work of @chmuche
CleverCloud/clever-tools-dockerhub#6

but applied on the dockertemplate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant